from  ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:3.0.0

WORKDIR /app

COPY . /app

# 创建虚拟环境并激活它（注意：这一步在非交互式环境中可能不工作）
RUN  python -m pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/
# 在虚拟环境中安装依赖
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

EXPOSE 7230

CMD ["gunicorn", "-c", "gun.py", "worker:app"]